/*
 * @Description: grpc server entry.
 * @Version: V1.0
 * @Author: zw_1520@163.com
 * @Date: 2024-09-02 08:42:26
 * @LastEditors: zw_1520@163.com
 * @LastEditTime: 2025-04-15 11:34:15
 * Copyright (C) All rights reserved.
 */

#include "robot_grpc_server.h"

int main(int argc, char** argv) {
  //  Inits node
  rclcpp::init(argc, argv);
  rclcpp::Node::SharedPtr robot_grpc_server_node =
      std::make_shared<RobotGrpcServer>();

  // Starts executor
  auto executor = std::make_shared<rclcpp::executors::MultiThreadedExecutor>();
  executor->add_node(robot_grpc_server_node);
  executor->spin();

  // Stops node
  rclcpp::shutdown();
  return 0;
}